package com.example.shangjinlieren.fractionPage;

import com.example.shangjinlieren.ResourceTable;
import com.example.shangjinlieren.compontents.ImageNetWork;
import com.example.shangjinlieren.tabbar.fraction.BaseFraction;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.*;
import ohos.app.Context;

public class template extends BaseFraction {
    private Context context;
    private AbilitySlice abilitySlice;
    private DirectionalLayout component;//当前fraction 页面体
    private LayoutScatter scatter;
    private ComponentContainer container;
    private Intent intent;
    public template(AbilitySlice abilitySlice) {
        this.abilitySlice = abilitySlice;
    }

    @Override
    protected Component onComponentAttached(LayoutScatter scatter, ComponentContainer container, Intent intent) {
        //获取fraction 体
        this.scatter=scatter;
        this.container = container;
        this.intent =intent;
        this.context = container.getContext();
        this.component =(DirectionalLayout)scatter.parse(ResourceTable.Layout_money_list, null, false);
        return component;
    }

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
    }

    @Override
    protected void onActive() {
        super.onActive();
    }

    @Override
    protected void onForeground(Intent intent) {
        super.onForeground(intent);
    }

    @Override
    protected void onInactive() {
        super.onInactive();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    public int getUIContent() {
        return ResourceTable.Layout_my_center;
    }

    @Override
    public void initComponent() {

    }
}
